<template>
  <ChatComponent
    ref="chatComponent"
    title="AI 超级智能体"
    placeholder="向AI超级智能体提问..."
    theme="super-agent"
    :api-url="apiUrl"
    :separate-messages="true"
    welcome-message="您好，我是AI超级智能体，可以帮您解答各种问题。请问有什么我可以帮助您的吗？"
    @messageSent="onMessageSent"
  />
</template>

<script setup>
import { ref } from 'vue'
import ChatComponent from '../components/ChatComponent.vue'

const chatComponent = ref(null)
const apiUrl = 'http://localhost:8080/api/ai/chat/manus'

const onMessageSent = (message) => {
  console.log('消息已发送:', message)
}
</script>

<style scoped>
/* 页面特定样式可以在这里添加 */
</style>